// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// import './assets/scss/reset.scss'
import axios from 'axios'
import Vuex from 'vuex'
// import directive from './directive/directives';	些指令有点问题  目前没有用到
import VueAwesomeSwiper from 'vue-awesome-swiper'

Vue.config.productionTip = false;


router.beforeEach((to, from, next) => {
    document.title = to.meta.title || 'smv';
    if(!to.query.url && from.query.url){
    	to.query.url == from.query.rul;
    }
    next();
});


/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: { App }
})
Vue.use(VueAwesomeSwiper);
Vue.use(Vuex);
Vue.prototype.$http =axios;